package com.principle.openClose;

/**
 * 演示开闭原则演示：
 * DrawGraph依赖三个类：shape ，circle ，
 */
public class Draw {
}


class GraphEditor{

    public void drawShape(){

    }

}

class Shape{
  int m_type ;
}
class Rectangle extends Shape{
    public Rectangle(){
       m_type=1 ;
    }
}
class Circle extends Shape{
    Circle(){
        m_type =2 ;
    }
}
